package server.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName ReadDataSourceProp
 * @Description
 * @Author Jingxiao.Ye
 * @Date 2021/12/21 上午12:25
 * @Version V1.0
 * @Since JDK 11
 */
@ConfigurationProperties(prefix = "db.write")
@Component
public class WriteDataSourceProp {

    private String username;

    private String password;

    private String jdbcUrl;

    private String driverClassName;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }
}
